document.addEventListener('plusready',function(){
	var ws = plus.webview.currentWebview();
	PullToRefresh(ws);
	plus.nativeUI.closeWaiting();
//	PullToRefresh(plus.webview.currentWebview().id);
	var ws = plus.webview.currentWebview();
	var uid = plus.storage.getItem('uid');
	var user = plus.storage.getItem('user');
	var name = plus.storage.getItem('name') != 'null'?plus.storage.getItem('name'):'';//用户名称
	var gid = plus.storage.getItem('gid');
//	console.log(plus.storage.getItem('userAvatar'));
	var avatar = plus.storage.getItem('userAvatar') != 'null'?getAvatar(plus.storage.getItem('userAvatar')):'../images/iconic.png';
//	console.log(uid+' '+name+" "+gid+" "+user+' '+avatar);
	$('.name').text(name);
	$('.phone').text(user);
	$('.userAvatar').attr('src',avatar);
	$('.goUserInfo').on('click',function(){
		goNewPage('me-centre-information.html',{spage :ws.id})
	})
},false)